package com.yuanian.timingwheel.model.task.executestragy;

import com.yuanian.timingwheel.model.task.base.BaseTask;

/**
 * 任务成功或失败的执行策略
 */
public interface ExecutionStrategy {

    void onSuccess(BaseTask task, Object result);

    void onFailure(BaseTask task, Exception e);

}
